package com.cx.bank.service.impl;

import com.cx.bank.mapper.LogMapper;
import com.cx.bank.pojo.Log;
import com.cx.bank.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
    LogMapper logMapper;
    @Override
    public List<Log> findLogs() {
        return logMapper.findLogs();
    }

    @Override
    public void insertLog(Log log) {
        System.out.println(log);
//        logMapper.insertLog(log);
    }

    @Override
    public List<Log> selectLogByUserId(int userId) {
        return logMapper.selectLogByUserId(userId);
    }

    @Override
    public int LogSums() {
        return logMapper.LogSums();
    }
}
